package cn.backpackerxl.web.router;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Author:backpackerxl CreateTime:2022/4/17
 * FileName:Router
 **/
public class Router {
    public static List<String> router(String url) {
        String urlS = url.substring(1);
        String[] urlArr = urlS.split("/");
        return new ArrayList<>(Arrays.asList(urlArr).subList(1, urlArr.length));
    }
}
